package cn.itbaizhan.tyut.exam.model;

import java.util.ArrayList;
import java.util.List;

/**
 * @author cengy
 */
public class Info {
    private String name;
    private String imageUrls;
    private String content;

    private String date;

    private List<String> imageUrlList = new ArrayList<>();

    public void after() {
        if (null == imageUrls || imageUrls.isEmpty()) {
            return;
        }

        String[] imgArray = imageUrls.split(",");

        for (String img : imgArray) {
            imageUrlList.add(img);
        }
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImageUrls() {
        return imageUrls;
    }

    public void setImageUrls(String imageUrls) {
        this.imageUrls = imageUrls;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public List<String> getImageUrlList() {
        return imageUrlList;
    }

    public void setImageUrlList(List<String> imageUrlList) {
        this.imageUrlList = imageUrlList;
    }
}
